/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.zxr.service;

import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;
import top.continew.admin.zxr.model.req.XshtbImportReq;
import top.continew.admin.zxr.model.resp.XshtbImportParseResp;
import top.continew.admin.zxr.model.resp.XshtbImportResp;
import top.continew.starter.extension.crud.service.BaseService;
import top.continew.admin.zxr.model.query.XshtbQuery;
import top.continew.admin.zxr.model.req.XshtbReq;
import top.continew.admin.zxr.model.resp.XshtbDetailResp;
import top.continew.admin.zxr.model.resp.XshtbResp;

import java.io.IOException;

/**
 * 销售合同业务接口
 *
 * @author yfh
 * @since 2025/05/06 14:42
 */
public interface XshtbService extends BaseService<XshtbResp, XshtbDetailResp, XshtbQuery, XshtbReq> {
    /**
     * 下载导入模板
     */
    void downloadImportTemplate(HttpServletResponse response) throws IOException;

    /**
     * 解析导入数据
     */
    XshtbImportParseResp parseImport(MultipartFile file);

    /**
     * 导入数据
     */
    XshtbImportResp importXshtb(XshtbImportReq req);

    /**
     * 初审通过
     * */
    void chushenTg(Long id);

    /**
     * 初审退回
     * */
    void chushenTh(Long id, String reason);

    /**
     * 终审通过
     * */
    void zhongshenTg(Long id);

    /**
     * 终审退回
     * */
    void zhongshenTh(Long id, String reason);
}